﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MapInfo/MapInfo.master" AutoEventWireup="true" StylesheetTheme="Content" CodeFile="DepartmentsList.aspx.cs" Inherits="MapInfo_DepartmentsList" %>

<%@ Register src="../UserContral/ListPageContral.ascx" tagname="ListPageContral" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <ul class="topmenu">
        <li>隶属单位：
            <asp:DropDownList ID="DptDepartment" Width="300px" runat="server">
            </asp:DropDownList>
        </li>    
        <li>消防站(队)名称：<asp:TextBox ID="txtName" runat="server" Width="200px"></asp:TextBox>
        </li>      
        <li>
            <asp:LinkButton ID="BtnSearch" runat="server" onclick="BtnSearch_Click" >查 询</asp:LinkButton>
        </li>
    </ul>
    <table border="0" cellpadding="0" cellspacing="0" class="dialog" width="770px">
        <caption>
            <span>接警人员查询</span></caption>
        <tr>
            <td style="width: 100%; margin: 0; padding: 0;" align="left">
                <asp:GridView ID="GvwList" runat="server" AutoGenerateColumns="False" PageSize="15"
                    OnRowDataBound="GvwList_RowDataBound" AllowPaging="True">
                    <Columns>
                        <asp:TemplateField ItemStyle-Width="30px" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <asp:Label ID="lblID" runat="server"></asp:Label>&nbsp;
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" Width="30px"></ItemStyle>
                        </asp:TemplateField>
                        <asp:BoundField DataField="DepartmentName" HeaderText="单位名称" />
                        <asp:TemplateField HeaderText="单位类别">
                            <ItemTemplate>
                                <%# GetDepartmentType(Eval("DepartmentType"))%>
                            </ItemTemplate>                         
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="消防站类别">
                            <ItemTemplate>
                               <%# GetStationType(Eval("StationType"))%>
                            </ItemTemplate>                      
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="消防站等级">
                            <ItemTemplate>
                                <%# GetStationLevel(Eval("StationLevel"))%>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="LeadName" HeaderText="领导姓名" />
                        <asp:BoundField DataField="ContactPhone" HeaderText="联系电话" />
                        <asp:BoundField DataField="FighterNumber" HeaderText="战头员人数" />                       
                        <asp:TemplateField>
                        <ItemTemplate>
                        <a href='DepartmentManager.aspx?DepartmentID=<%#Eval("DepartmentID") %>'>查 看</a>
                        </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <PagerTemplate>
                    </PagerTemplate>
                </asp:GridView>
            </td>
        </tr>
    </table>

    <uc1:ListPageContral ID="ListPageContral1" PageSize="15" runat="server" OnPageSizeChange="ListPageContral1_PageSizeChange" />

</asp:Content>

